package com.koron.car.web.maintain.bean.entity;

import com.koron.car.web.common.UpdateParameter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("维修申请")
public class CarMaintain implements Serializable, UpdateParameter {
    private static final long serialVersionUID = -64543548862667818L;

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("维修单号，保养无单号")
    private String code;

    @ApiModelProperty("维修/保养类型，字典（maintain_type）：维修或保养")
    private String maintainType;

    @ApiModelProperty("车辆id，w_cm_car.id")
    private String carId;

    @ApiModelProperty("车牌号")
    private String licPlateNum;

    @ApiModelProperty("归属组织(车辆单位)")
    private String ownerOrg;

    @ApiModelProperty("申请人id")
    private String applicantId;

    @ApiModelProperty("申请人名称")
    private String applicantName;

    @ApiModelProperty("指定位置维修/保养:是、否")
    private Integer appointPlace;

    @ApiModelProperty("维修/保养估价,单位：元，保留2位小数")
    private Double appraise;

    @ApiModelProperty("实际维修保养价格")
    private Double actualPrice;

    @ApiModelProperty("故障现象/维修项目")
    private String describe;

    @ApiModelProperty("维修/保养地点")
    private String repairPlace;

    @ApiModelProperty("入场时间")
    private Date repairStartTime;

    @ApiModelProperty("验收时间")
    private Date repairEndTime;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("状态，字典（maintain_state）：草稿、待审核、待安排、验收、结束")
    private String state;

    @ApiModelProperty(value = "创建人账号")
    private String createBy;

    @ApiModelProperty(value = "创建人姓名")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人账号")
    private String updateBy;

    @ApiModelProperty(value = "更新人姓名")
    private String updateByName;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "部门")
    private String deptId;
}
